package com.example.demo.controller;

import com.example.demo.entity.ResultMsg;
import org.springframework.web.bind.annotation.GetMapping;
import org.springframework.web.bind.annotation.RequestMapping;
import org.springframework.web.bind.annotation.RestController;

/**
 * @author user
 */
@RestController
@RequestMapping("consul")
public class ConsulController {
    @GetMapping("healthCheck")
    public ResultMsg healthCheck() throws InterruptedException {
        Thread.sleep(1000);
        return ResultMsg.ok("I'm healthy !");
    }


}
